package com.example.carbonbackend.service;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.example.carbonbackend.model.dto.ListingInfo.ListingInfoQueryRequest;

import com.example.carbonbackend.model.entity.ListingInfo;

import com.example.carbonbackend.model.vo.ListingInfoVO;

import javax.servlet.http.HttpServletRequest;


/**
* @author b'j'x
* @description 针对表【listinginfo(挂牌信息表)】的数据库操作Service
* @createDate 2024-03-28 14:14:28
*/
public interface ListingInfoService extends IService<ListingInfo> {

    /**
     * 获取查询条件
     *
     * @param listingInfoQueryRequest
     * @return
     */
    QueryWrapper<ListingInfo> getQueryWrapper(ListingInfoQueryRequest listingInfoQueryRequest);

    /**
     * 获取交易记录封装
     *
     * @param listingInfo
     * @param request
     * @return
     */
    ListingInfoVO getListingInfoVO(ListingInfo listingInfo, HttpServletRequest request);

    /**
     * 分页获取交易记录封装
     *
     * @param listingInfoPage
     * @param request
     * @return
     */
    Page<ListingInfoVO> getListingInfoVOPage(Page<ListingInfo> listingInfoPage, HttpServletRequest request);
}
